home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
logbatch
/
addpat.arc
/
ADDPATH.DOC
next >
Wrap
Text File
|
1988-08-20
|
7KB
|
149 lines
┌───────────────────────────────────────────────────────────────┐
│ ╔═══════════════╗ │
│ ║ ADDPATH ║ │
│ ╚═══════════════╝ │
│ │
│ │
│ ┌─────────────────────┐ │
│ │ David Portnoy │ │
│ │ P.O. Box 28321 │ │
│ │ St. Louis, MO 63146 │ │
│ └─────────────────────┘ │
│ │
│ August 16, 1988 │
│ │
│ │
│ To me this program represents countless hours of labor; to │
│ you it is a helpful utility that should have been made a │
│ long time ago. If you find it as useful as I did, please │
│ reward my efforts by contributing $5 to $20. Your generous │
│ donation will help this impoverished programmer pay his │
│ tuition and encourage him to write other useful utilities. │
│ If you contribute $20 (more if you feel generous) I will │ │
│ send you the source code on a diskette by return mail. │ │
│ │
│ │
│ Send Questions/Comments/Problems to the address above or │
│ leave me a message on The Computer Assistance Network │
│ (314)298-8564 │
│ (314)298-8363 │
│ │
└───────────────────────────────────────────────────────────────┘
This utility adds (or removes) the
specified paths to (from) the environment.
┌────────┐
│ Format │
└────────┘
The format of the path you specify should look like this:
D:\DIR1\DIR2\DIR3...;
where D is a drive letter and the DIRs are directories followed by
their subdirectories. You don't have to use capital letters.
You can specify more than one path to add by separating the paths
with a semicolon (;) like this:
D1:\DIR1\DIR2...;D2:\DIR1\DIR2...;D3:\DIR1\DIR2...;...
To add a path, specify it after typing "ADDPATH" like this:
ADDPATH D:\DIR1\DIR2...;...
If you don't specify a path, ADDPATH will prompt you for one.
You can add paths to the front of the path environment variable
by typing a double semicolon (;;) after the specified paths like
this:
ADDPATH D1:\DIR1\DIR2...;...;;D2:\DIR1\DIR2...;...
The paths after the double semicolon are added to the end of the
path environment variable (as paths are usually added).
┌─────────┐
│ Network │
└─────────┘
ADDPATH can also be used with a network. ADDPATH locates the first
network drive and allows you to specify it and the following drives
by using an asterisk and a number corresponding to the drive. For
example:
If the first network drive is N:
ADDPATH *1:\A;*2:\B;*3:\C;*13:\D;
is the same as
ADDPATH N:\A;O:\B;P:\C;Z:\D;
But if there is no network drive available or if the specified number
indicates a drive higher than Z:, the path is not added.
Of course, with networks you can still specify the actual drive
letter for both local and remote drives.
┌──────────┐
│ Switches │
└──────────┘
ADDPATH provides a few switches that can be entered after the path or
without the path, but not before the path. If you enter only the
switches, ADDPATH will prompt you for a path.
The swithces are preceded by either a dash (-) or a forward slash (/)
and can be in either lower or upper case. Specify:
-V to view what is being added to or removed from the path
environment variable.
-A to see information such as the location of the
environment, the moving of memory, the new path created,
and all the things that the -V swithch displays.
-I to ignore everything after the last semicolon in the
specified path. This switch may be useful if you use
ADDPATH in a login script of a network.
-D to delete the specified paths form the environment.
-F to add the specified string to the front of the path
environment variable. Otherwise, it is added to the end.
-H to display the switches of ADDPATH.
┌──────────┐
│ Examples │
└──────────┘
ADDPATH C:\DOS
adds C:\DOS to the end of the path environment variable.
ADDPATH D:\MSC;C:\DOS -V
adds D:\MSC and C:\DOS to the end of the path environment variable and
informs you about the additions.
ADDPATH C:\DOS\EXAMPLES -D -V
removes C:\DOS\EXAMPLES from the path environment variable and informs
you about the deletions.
ADDPATH D:\MSC\BIN;C:\BASIC -F
adds D:\MSC\BIN and C:\BASIC to the front of the path environment variable.
ADDPATH -H
displays ADDPATH's switches and prompts you to enter a path.
ADDPATH C:\DOS;D:\MSC\BIN;;C:\;A:\;C:\BASIC
adds C:\DOS and D:\MSC\BIN to the front and C:\, A:\, and C:\BASIC to the
end of the path environment variable.
ADDPATH *1:\PUBLIC;*2:\BACKUP;C:\DOS -D -V
removes <1st network drive>:\PUBLIC, <2nd network drive>:\BACKUP, and
C:\DOS from the path environment variable and displays the deletions.
ADDPATH *1:\PUBLIC;*2:\BACKUP -I
adds <1st network drive>:\PUBLIC to the path environment variable, but
does not add <2nd network drive>:\BACKUP. This has the same affect as
ADDPATH *1:\PUBLIC; -I
The -I switch is only useful if you want to use ADDPATH in the login script
of your network.